package com.project.bean.DisasterPrevention;


//小班实体

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

@TableName("class_info")
public class ClassBean {


    @TableId(value = "class_id",type = IdType.AUTO)
    private Integer classId;	//小班编号
    @TableField("class_name")
    private String className;	//小班名称
    @TableField("class_person")
    private String classPerson;	//小班负责人
    @TableField("class_person_tel")
    private String classPersonTel;	//负责人电话
    @TableField("class_num")
    private String classNum;	//小班人员数量
    @TableField("class_create_date")
    private LocalDate classCreateDate=LocalDate.now();//小班创建时间

    @TableField("fk_regionId")
    private Integer regionId;
    @TableField(exist = false)
    private RegionBean regionBean;//区域实体


    public ClassBean() {
    }


    public ClassBean(String className, String classPerson, String classPersonTel, String classNum, Integer regionId) {
        this.className = className;
        this.classPerson = classPerson;
        this.classPersonTel = classPersonTel;
        this.classNum = classNum;
        this.regionId = regionId;
    }

    public ClassBean(Integer classId, String className, String classPerson, String classPersonTel, String classNum, LocalDate classCreateDate, RegionBean regionBean) {
        this.classId = classId;
        this.className = className;
        this.classPerson = classPerson;
        this.classPersonTel = classPersonTel;
        this.classNum = classNum;
        this.classCreateDate = classCreateDate;
        this.regionBean = regionBean;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassPerson() {
        return classPerson;
    }

    public void setClassPerson(String classPerson) {
        this.classPerson = classPerson;
    }

    public String getClassPersonTel() {
        return classPersonTel;
    }

    public void setClassPersonTel(String classPersonTel) {
        this.classPersonTel = classPersonTel;
    }

    public String getClassNum() {
        return classNum;
    }

    public void setClassNum(String classNum) {
        this.classNum = classNum;
    }

    public LocalDate getClassCreateDate() {
        return classCreateDate;
    }

    public void setClassCreateDate(LocalDate classCreateDate) {
        this.classCreateDate = classCreateDate;
    }

    public RegionBean getRegionBean() {
        return regionBean;
    }

    public void setRegionBean(RegionBean regionBean) {
        this.regionBean = regionBean;
    }

    public Integer getRegionId() {
        return regionId;
    }

    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }


    @Override
    public String toString() {
        return "ClassBean{" +
                "classId=" + classId +
                ", className='" + className + '\'' +
                ", classPerson='" + classPerson + '\'' +
                ", classPersonTel='" + classPersonTel + '\'' +
                ", classNum='" + classNum + '\'' +
                ", classCreateDate=" + classCreateDate +
                ", regionId=" + regionId +
                ", regionBean=" + regionBean +
                '}';
    }
}
